import type { ActionProps } from "~/types/enum";

export enum MenuApi {
  GetList = "api/Menu/GetList",
  AddorUpdate = "api/Menu/AddorUpdate",
  CheckData = "api/Menu/CheckMenuName",
  CheckDatab = "api/Menu/CheckMenuCode",
  Delete = "api/Menu/Delete",
  GetDetail = "api/Menu/GetListc",
  Reduction = "api/Menu/Reduction",
  GetTreeList = "api/Menu/GetTreeListb",
  GetAllList = "api/Menu/GetListb"
}

export class MenuAction {
  actionPros: ActionProps = {
    addCode: "MenuAdd",
    deleteCode: "MenuDelete",
    updateCode: "MenuUpdate",
    queryCode: "MenuGetList",
    importCode: "",
    exportCode: "",
    downImportCode: "",
    reductionCode: "",
    recyclebinCode: ""
  };
}

export interface MenuInfo {
  component: string;
  language: string;
  isShow: string;
  aName: string;
  abName: string;
  abIcon: string;
  abIndex: string;
  aCode: string;
  ahtmlUrl: string;
  aapiUrl: string;
  amoduleIndex: string;
  ahtmlIcon: string;
  aParentId: string;
  aType: string;
  aisCURD: any;
}
